import collections

l1 = ['小明','小张','小黄','小杨']
l2 = ['小黄','小李','小王','小杨','小周']
l3 = ['小杨','小张','小吴','小冯','小周']
print(collections.Counter(l1 + l2 + l3))

print(len(collections.Counter(l1 + l2 + l3)))
print(len(set(l1 + l2 + l3)))

dt = dict(collections.Counter(l1+l2+l3))
for i in dt:
    if dt[i] == 1:
        print(i, end=" ")

print("\n")

for i in dt:
    if dt[i] >= 2:
        print(i, end=" ")